/**
*
*  UTF-8 data encode / decode
*  http://www.webtoolkit.info/
*
**/
var _pathEncoder = './Resouces/js/jl_functions/utf8_encode.php';

$.extend({ 
 	
	// public method for url encoding
	Utf8_encode : function (simple_text) {
		var _str = "";
		$.post(_pathEncoder, { _encode: 1, _data: simple_text }, function(data){ 
			if($.trim(data)!=""){
				_str = $.trim(data);
				alert(data);
			}
		});
		
		return _str;
	},
 
	// public method for url decoding
	Utf8_decode : function (utf8_text) {
		var _str = "";
		$.post(_pathEncoder, { _encode: 0, _data: utf8_text }, function(data){ 
			if($.trim(data)!=""){
				_str = $.trim(data);alert(data);
			}
		});
		
		return _str;
	}
 
});


